package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * @author eason
 * @ClassName: shopCar
 * @Description: 商品-购物车定义表
 * @date 2016-11-02 18:25:27
 */
@Entity
@Table(name = "tb_xa_shopcar")
@ApiModel(value = "商品-购物车定义表")
public class ShopCar extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品的id,商品的id")
    private Long shopId;
    @ApiModelProperty(value = "购买数量,购物该商品数量")
    private Long carNumber;
    @ApiModelProperty(value = "用户id,购买用户的id")
    private Long userId;
    @ApiModelProperty(value = "价格,价格")
    private Double price;
    /**
     * 多个规格值,用逗号分割,如:1,22,45说明:规格值id1,规格值id22,规格值id45
     */
    @ApiModelProperty(value = "选择的规格Ids,选择的规格Ids;用逗号分割")
    private String standardIds;


    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Column(nullable = true, length = 50)
    public Long getShopId() {
        return shopId;
    }

    public void setCarNumber(Long carNumber) {
        this.carNumber = carNumber;
    }

    @Column(nullable = true, length = 50)
    public Long getCarNumber() {
        return carNumber;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(nullable = true, length = 50)
    public Long getUserId() {
        return userId;
    }

    @Column(nullable = true, length = 255)
    public String getStandardIds() {
        return standardIds;
    }

    /**
     * 如:多个规格值,用逗号分割,如:1,22,45说明:规格值id1,规格值id22,规格值id45
     *
     * @param standardIds
     */
    public void setStandardIds(String standardIds) {
        this.standardIds = standardIds;
    }


}
